import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const routes = [
  {
    path: '/',
    redirect: '/article'
  },
  {
    path: '/',
    component: () => import('../components/Home'),
    meta: {title: '包裹文件'},
    children: [
      {
        path: '/article',
        component: () => import('../components/article'),
        meta: {title: '文章阅读',}
      },
      {
        path: '/liveVideo',
        component: () => import('../components/liveVideo'),
        meta: {title: '视频直播',}
      },
      {
        path: '/demand',
        component: () => import('../components/videoOnDemand'),
        meta: {title: '视频点播',}
      },
      {
        path: '/questionnaire',
        component: () => import('../components/questionnaireInvestigation'),
        meta: {title: '问卷调查',}
      },
      {
        path: '/404',
        component: () => import('../components/404'),
        meta: {title: '失效',}
      },
    ]
  },


]

export default new Router({
  mode: "history",
  routes
})
